/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */

import type { MaSearchItem } from "@mineadmin/search";

export default function getSearchItems(t: any): MaSearchItem[] {
  return [
    {
      label: "申请人",
      prop: "user_id",
      render: "input",
      renderProps: {
        placeholder: "请输入申请人ID",
        clearable: true,
      },
    },
    {
      label: "申请范围",
      prop: "area",
      render: "select",
      renderProps: {
        placeholder: "请选择申请范围",
        clearable: true,
        options: [
          { label: "项目", value: 1 },
          { label: "工区", value: 2 },
          { label: "站点", value: 3 },
        ],
      },
    },
    {
      label: "审批人",
      prop: "apply_id",
      render: "input",
      renderProps: {
        placeholder: "请输入审批人ID",
        clearable: true,
      },
    },
    {
      label: "审批状态",
      prop: "status",
      render: "select",
      renderProps: {
        placeholder: "请选择审批状态",
        clearable: true,
        options: [
          { label: "待审批", value: 1 },
          { label: "通过", value: 2 },
          { label: "拒绝", value: 3 },
        ],
      },
    },
  ];
}

